package cc.comac.mom.entity;

import java.util.Date;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import cc.comac.mom.entity.base.BaseEntity;
import lombok.Data;
@Data
@TableName("basic_standard_restricted_part")
public class BasicStandardRestrictedPartEntity extends BaseEntity{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@TableId(value = "basic_standard_restricted_id",type = IdType.INPUT)
	@TableField("basic_standard_restricted_id")
	private long id;
	private Integer lifeLimitedTimeValue;
	private String lifeLimitedTimeType;
	private String lifeLimitedMethod;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	private Date baseTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	private Date storageTime;
	private String dueProcessing;
	private long basicStandardId;
	private String uuid;
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (getClass() != obj.getClass())
			return false;
		BasicStandardRestrictedPartEntity other = (BasicStandardRestrictedPartEntity) obj;
		if (uuid == null) {
			if (other.uuid != null)
				return false;
		} else if (!uuid.equals(other.uuid))
			return false;
		return true;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = super.hashCode();
		result = prime * result + ((uuid == null) ? 0 : uuid.hashCode());
		return result;
	}
	
}
